package cn.edu.scau.cmi.chenjieling.simpleFactory;

import cn.edu.scau.cmi.chenjieling.simpleFactory.BodyInjur;
import cn.edu.scau.cmi.chenjieling.simpleFactory.CarDamage;
import cn.edu.scau.cmi.chenjieling.simpleFactory.Comprehensive;
import cn.edu.scau.cmi.chenjieling.simpleFactory.PersonInjur;

public class InsuranceSimpleFactory {
	public static Claim getInstance(String insuTypeString){
		switch(insuTypeString){
		case "bodyInjure":return new BodyInjur();
		case "carDamage":return new CarDamage();
		case "comprehensive":return new Comprehensive();
		case "personInjure":return new PersonInjur();
		}
		
		return null;
		
	}

}
